using JoyfulHomeJourney.BackEnd.Infrastructure.EFCore;
using JoyfulHomeJourney.BackEnd.Infrastructure.Dtos.Responses.Objects;
using JoyfulHomeJourney.BackEnd.Infrastructure.Tools;
namespace JoyfulHomeJourney.BackEnd.Server.Instances.Extends.Responses
{
	public static class OfflineOrderDetailsExtend
{
		public static ResponseOfflineOrderDetailsDto ToResponseDto(this OfflineOrderDetails entity)
{			return new ResponseOfflineOrderDetailsDto
			{
				id = entity.OodId,
				offlineOrderId = entity.OodOfflineOrderId,
				productId = entity.OodProductId,
				count = entity.OodCount,
				productName = entity.OodProductName,
				singlePrice = entity.OodSinglePrice,
				productPrice = entity.OodProductPrice,
				productPayPrice = entity.OodProductPayPrice,
				vipDiscount = entity.OodVipDiscount,
				discount = entity.OodDiscount,
				deduction = entity.OodDeduction,
			};
		}
	}
}
